<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页</title>
    <link rel="stylesheet" href="./导航栏.css">
    <style>
body{
    background-image: url("分部/首页.jpg");
    background-size: cover;
}
a {
    color: #fff;
    text-decoration: none;
}
li {
    list-style: none;
}
p {
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 10px;
    color: #999;
}
nav {
    width: 100%;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.9);
}
.nav ul li {
    display: inline-block;
    padding-left: 15px;
    padding-right: 15px;
    transform: translateY(0px);
    transition: ease-in-out 0.3s;
}
.nav ul li a {
    display: block;
    height: 60px;
    line-height: 60px;
}

.nav ul li:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.8);
}

.nav ul li a:hover {
    color: #333;
}

.container {
    overflow: auto;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 50px;
    padding: 20px;
    text-align: center;
    background-color: pink;
    height: 500px;
    border-radius: 20px;
    box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.container input {
    width: 80%;
    height: 30px;
    border: 0;
    border-radius: 10px;
    background-color: white;
    box-shadow: 1.5px 1.5px 1.5px 0 black;
}

.container button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 15px;
    box-shadow: 1.5px 1.5px 1.5px 0 black;
}

#todoList {
    margin-top: 20px;
}

.todoItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px black
}
.todoText {
    flex: 1;
}
.completed {
    text-decoration: line-through;
}
.deleteBtn {
    cursor: pointer;
    color: red;
}
.deleteBtn:hover {
    text-decoration: underline;
}
    </style>
</head>
<body>
    <div class="tou">
        <header>
            <ul>
                <li><a href="../首页.html">首页</a></li>
                <li><a href="./轮播图.html">轮播图</a></li>
                <li><a href="./待办.html">待办</a></li>
                <li><a href="https://gitee.com/han-sunian/">仓库</a></li>
            </ul>
        </header>
    </div>
    <div class="container">
        <h1>待办列表</h1>
        <form id="addTodoForm">
            <input type="text" id="newTodoInput" placeholder="  添加新待办事项...">
            <button type="submit">十</button>
        </form>
        <div id="todoList"></div>
    </div>
    <script src="./index.js"></script>
</body>
</html>